# models.py
import datetime
from pathlib import Path

from pydantic import BaseModel
from typing import Optional

class BrowserSession(BaseModel):
    """浏览器会话元数据模型"""
    session_id: str
    cache_path: Path
    created_at: datetime.datetime
    last_activity: datetime.datetime
    user_agent: str
    is_active: bool = True